import ajax from './ajax';

const BASE_URL = 'https://tengxiansh.dindong.cn/api/';


//用户授权登陆
export const postCode = (params) => ajax(BASE_URL + 'auth/wxAppLogin', params, 'POST');
//获取轮播图数据
export const getCarousel = () => ajax(BASE_URL + 'other/getBannerList');
//获取后端返回的用户信息
export const getUserInfo = (params) => ajax(BASE_URL + 'ucenter/getUserInfo', params);
//获取活动详情
export const getActivityDtail = (params) => ajax(BASE_URL + 'activity/getActivityDetail', params);
//获取活动签到状态
export const activityCheckStatus = (params) => ajax(BASE_URL + 'activity/activityCheckStatus', params);
//活动签到
export const activityCheckIn = (params) => ajax(BASE_URL + 'activity/activityCheckIn', params, 'POST');
//获取企业风采列表
export const getChamberCommerceStyleList = (params) => ajax(BASE_URL + 'index/getChamberCommerceStyleList', params);
//获取会员企业列表
export const getVipCompanyList = (params) => ajax(BASE_URL + 'index/getVipCompanyList',params);
//提交入会申请
export const postAdmissionApplication = (params) => ajax(BASE_URL + 'ucenter/AdmissionApplication', params, 'POST');
//获取获得活动列表
export const getActivityList = (params) => ajax(BASE_URL + 'activity/getActivity', params);
//获取活动详情
export const getActivityDetail = (params) => ajax(BASE_URL + 'activity/getActivityDetail', params);
//获取商会历史信息
export const getChamberCommerceInfo = () => ajax(BASE_URL + 'index/getChamberCommerceInfo');
//杰出人物列表
export const getChamberCommerceEliteList = (params) => ajax(BASE_URL + 'index/getChamberCommerceEliteList',params);
//创建活动订单
export const postbuildOrder = (params) => ajax(BASE_URL + 'order/buildOrder', params, 'POST');
//发送微信支付请求
export const postWeChatPayment = (params) => ajax(BASE_URL + 'payment/weChatPayment', params, 'POST');
//填写个人信息
export const addUserInfo = (params) => ajax(BASE_URL + 'ucenter/addUserInfo', params,'POST');
//公司名搜索
export const companyInfo = (params) => ajax(BASE_URL + 'ucenter/companyInfo', params);
//获取我的企业列表
export const getUserBindCompany = (params) => ajax(BASE_URL + 'ucenter/getUserBindCompany', params);
//绑定企业
export const userBindCompany= (params) => ajax(BASE_URL + 'ucenter/userBindCompany', params,'POST');
//删除企业
export const deleteBindCompany= (params) => ajax(BASE_URL + 'ucenter/deleteBindCompany', params,'POST');
//提交请假申请
export const applyLeave= (params) => ajax(BASE_URL + 'daka/applyLeave', params,'POST');

//获取商品列表
export const getGoodsList = (params) => ajax(BASE_URL + 'goods/getGoodsList', params);
//获取商品详情
export const getGoodsDetails = (params) => ajax(BASE_URL + 'goods/getGoodsDetails', params);
//获取已参加活动列表
export const getUserJoinActivity = (params) => ajax(BASE_URL + 'ucenter/getUserJoinActivity', params);
//获取获取入会申请审核结果
export const getApplicationStatus = (params) => ajax(BASE_URL + 'ucenter/getApplicationStatus', params);
//搜索页面数据
export const getSearch = (params) => ajax(BASE_URL + 'index/indexSearch', params);
//获取formId
export const postRecordFormId = (params) => ajax(BASE_URL + 'ucenter/recordFormId', params, 'POST');
//获取绑定手机验证码
export const postSendVerificationCode = (params) => ajax(BASE_URL + 'auth/sendVerificationCode', params, 'POST');
//绑定手机号
export const postBindingPhone = (params) => ajax(BASE_URL + 'auth/bindingPhone', params, 'POST');
// //获取任务列表
export const getTaskInfoList = (params) => ajax(BASE_URL + 'daka/getTaskInfoList', params);
//费用申请
export const feeApplication= (params) => ajax(BASE_URL + 'ucenter/feeApplication',params, 'POST');



//打卡
export const postUserDaka = (params) => ajax(BASE_URL + 'daka/UserDaka', params, 'POST');
//过去打卡信息
export const getDakaStatus = (params) => ajax(BASE_URL + 'daka/getDakaStatus', params);
//获取商会精英接口
export const getChambersElite = (params) => ajax(BASE_URL + 'ucenter/getChambersElite', params);
//获取栏目功能列表
export const getFeaturesMenu = () => ajax(BASE_URL + 'other/getFeaturesMenu');

//获取个人名片
export const getPersonalBusinessCard = (params) => ajax(BASE_URL + 'ucenter/getPersonalBusinessCard', params);
//活动浏览量记录
export const activityBrowseRecord = (params) => ajax(BASE_URL + 'activity/activityBrowseRecord', params, 'POST');
//记录访客量与浏览量
export const insertVipVisitorRecord = (params) => ajax(BASE_URL + 'ucenter/insertVipVisitorRecord', params, 'POST');
//获取费用申请项目列表
export const feeVerifyList = (params) => ajax(BASE_URL + 'ucenter/feeVerifyList', params);
//审核费用申请
export const feeApplySetting = (params) => ajax(BASE_URL + 'ucenter/feeApplySetting', params, 'POST');
//获取费用申请详情
export const feeApplyDetail = (params) => ajax(BASE_URL + 'ucenter/feeApplyDetail', params);
//活动报名线下
export const activitySignUpOffline = (params) => ajax(BASE_URL + 'activity/activitySignUpOffline', params, 'POST');
//财务管理
export const financialManagement = (params) => ajax(BASE_URL + 'ucenter/financialManagement', params);
//固定资产
export const getFixedAssetsList = (params) => ajax(BASE_URL + 'ucenter/getFixedAssetsList', params);
//获取我的总积分
export const getMySumIntegral = (params) => ajax(BASE_URL + 'ucenter/getMySumIntegral', params);
//获取我积分记录
export const getMyIntegral = (params) => ajax(BASE_URL + 'ucenter/getMyIntegral', params);

//获取供求列表
export const getSupplyDemandList = (params) => ajax(BASE_URL + 'other/getSupplyDemandList', params);
//设置供求
export const setSupplyDemand = (params) => ajax(BASE_URL + 'other/setSupplyDemand', params, 'POST');
//供求点赞
export const setRecordSupplyDemandLikeNum = (params) => ajax(BASE_URL + 'other/recordSupplyDemandLikeNum', params, 'POST');

//填写我的企业信息
export const buildCompanyInfo = (params) => ajax(BASE_URL + 'ucenter/buildCompanyInfo', params, 'POST');
